import request from '@/utils/request'
import type { LoginForm } from '@/types/login'

//登陆接口
export const login = (data: LoginForm & { userType: string }): Promise<any> => {
  return request({
    url: '/risk/sys/mLogin',
    method: 'post',
    data,
  })
}
//获取验证码
export const getCaptcha = (data?: any): Promise<string> => {
  return request({
    url: '/risk/sys/randomImage/1700730922031?_t=1700730922',
    method: 'get',
    data,
  })
}
